#include "StdAfx.h"

#include "Ray.h"

Ray::Ray(const Point& p, const Direction& d) : P(p), D(d) {}
Ray::Ray(const Ray& r) : P(r.P), D(r.D) {}

Point Ray::Shoot(double distance) const
{
	return Point(D.X * distance + P.X, D.Y * distance + P.Y, D.Z * distance + P.Z);
}